<template >
	<view class="content">
		<button  @click="getMockData()" class="getDataBtn" type="primary">点击发送请求,获取mock的模拟数据</button>
		<textarea  :value="mockData" placeholder="" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mockData:''
			}
		},
		onLoad() {

		},
		methods: {
			getMockData(){
			     this.$api.mockReqTest().then( (data) => { this.mockData =  data.string})
			}
		}
	}
</script>

<style>

		
</style>
